package com.by.bean;


import com.by.common.group.ISave;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;


@Data
@ApiModel("员工")

public class Employess {


    @ApiModelProperty("员工的唯一标识符,不可以为空")
    int employee_id;
    @ApiModelProperty("员工姓名")
    String e_name;
    @ApiModelProperty("联系方式")
    String contact_info;
    @ApiModelProperty("所属部门的ID")
    int department_id;
    @ApiModelProperty("职务")
    String position;
    @ApiModelProperty("账号")
    String account;
    @ApiModelProperty("员工类型，普通员工\n" +
            " 内销\n" +
            " 外销")
    int type;
    @ApiModelProperty("是否审核 1 需要审核\n" +
            "2 无需审核")
    int isaudit;
    @ApiModelProperty("年度业绩目标")
    String annual_target;
    @ApiModelProperty("已完成业绩")
    String completed_performance;
    @ApiModelProperty("完成率")
    String completion_rate;
    @ApiModelProperty("角色的ID")
    int role_id;
    @ApiModelProperty("账号状态")
    int account_status;
    @ApiModelProperty("密码")
    String password;
    @ApiModelProperty("员工生日")
    String birthday;
    @ApiModelProperty("入职日期")
    LocalDate hire_date;
    @ApiModelProperty("底薪")
    int base_salary;

/*    @ApiModelProperty("账号")
    @NotBlank(message = "账号不能为空！", groups = {ISave.class})
    String account;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空！", groups = {ISave.class})
    String password;*/


}
